package com.tms.service;

import com.github.pagehelper.PageInfo;
import com.tms.domain.LifeCycle;

import java.util.List;

/**
 * lifeCycle业务接口定义
 */
public interface LifeCycleService {

    /**
     * 根据ID查询
     */
    LifeCycle findLifeCycleById(Integer id);

    /**
     * 创建
     */
    LifeCycle createLifeCycle(LifeCycle lifeCycle);

    /**
     * 根据ID删除
     */
    void deleteLifeCycleById(Integer id);

    /**
     * 根据ID更新
     */
    LifeCycle updateLifeCycleById(LifeCycle lifeCycle);

    /**
     * 根据code和seqId查找
     *
     * @param toolId tool id
     */
    List<LifeCycle> findLifeCycleByCodeAndSeqId(int toolId);

    /**
     * 根据code和seqId分页查找
     */
    PageInfo<LifeCycle> findLifeCycleByPage(int toolId, int page, int pageSize);
}